#pragma once

#include <QWidget>
#include <QLabel>
#include <QPushButton>
#include <QHBoxLayout>

#include "header.h"

class ClientInfo : public QWidget
{
    Q_OBJECT
public:
    explicit ClientInfo(const QString &name, QWidget *parent = nullptr);

    void increaseData(int value);

signals:
    void disconnectRequested();

private:
    QLabel *mLabelName;
    QLabel *mLabelData;
    QPushButton *mBtnDisconnect;

    int data = 0;
};
